<section>
  <input type="text" ng-model="curItem.content" ng-keyup="$event.keyCode === 13 && addItem()">
  <button ng-click="addItem()">Add</button>
</section>